#! /bin/sh

set -e

ln -sf /usr/share/sms/sms.sh /usr/bin/sms

chmod 750 /var/sms

# Clear jetty cache.
rm -rf /var/sms/jetty

# Configure SMS service.
update-rc.d sms defaults 99

# Start SMS service.
invoke-rc.d sms start
